/*
 * @jixuanyu: jixuanyu
 * @Date: 2022-08-18 16:47:18
 * @LastEditors: jixuanyu
 * @Description: file content
 */
import { defineClientConfig } from '@vuepress/client'
import '../../lib/index.less'
import ZUI from '../../lib/index.js'
import 'dayjs/locale/zh-cn'
import locale from '../../es/locale-provider/zh_CN.js'
import * as Icons from '@ant-design/icons-vue'
import dayjs from 'dayjs'
import clipboard from './directives/clipboard/index.js';

export default defineClientConfig({
  enhance({ app, router, siteData }) {
    app.use(ZUI)
    app.use(clipboard)
    const icons = Icons
    for (const i in icons) {
      app.component(i, icons[i])
    }
    app.config.globalProperties.locale = locale
    app.config.globalProperties.dayjs = dayjs
  },
  setup() {},
  rootComponents: [],
})